package com.kamistoat.meimeichat.meimeichatserverapplication.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.PageUtils;
import com.kamistoat.meimeichat.meimeichatserverapplication.common.utils.Query;

import com.kamistoat.meimeichat.meimeichatserverapplication.dao.MmcGroupsDao;
import com.kamistoat.meimeichat.meimeichatserverapplication.entity.MmcGroupsEntity;
import com.kamistoat.meimeichat.meimeichatserverapplication.service.MmcGroupsService;


@Service("mmcGroupsService")
public class MmcGroupsServiceImpl extends ServiceImpl<MmcGroupsDao, MmcGroupsEntity> implements MmcGroupsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MmcGroupsEntity> page = this.page(
                new Query<MmcGroupsEntity>().getPage(params),
                new QueryWrapper<MmcGroupsEntity>()
        );

        return new PageUtils(page);
    }

}